<<?php
$cars = array("NHS","MZL","LQJ");
/*echo $cars[1];
$cars[2] = "Aydi";


echo "<pre>";
print_r($cars);
echo count($cars);*/

echo "<hr/>";
echo "foreach ::::.<br/>";
foreach ($cars as $value){
    echo $value ."<br/>";
}


echo "<hr/>";
echo "for.<br/>";
$len = count ($cars);
for ($i = 0; $i < $len; $i++) {
    echo $cars[$i]."<br/>";
    
}

?>
